package com.tang.filecenter;

import com.tang.common.feign.BlogHandleFeign;
import com.tang.common.feign.UserCenterFeign;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

@SpringBootApplication
@EnableSwagger2WebMvc
@EnableFeignClients(basePackageClasses = {UserCenterFeign.class, BlogHandleFeign.class})
@ConfigurationPropertiesScan(basePackages = {"com.tang.common.properties", "com.tang.filecenter.properties"})
@ComponentScan(basePackages = {"com.tang.common.config","com.tang.filecenter"})
public class FileCenterRunApplication {
    public static void main(String[] args) {
        SpringApplication.run(FileCenterRunApplication.class, args);
    }
}
